package com.smart.order.api;

import com.qf.common.result.ResponseResult;
import com.smart.order.dto.CartsDTO;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Administrator
 */
public interface CartsApi {
    /**
     * @param ids
     * @return
     */
    @GetMapping("/list/ids")
    ResponseResult<List<CartsDTO>> list(@RequestParam("ids") List<Long> ids);

    /**
     * @param ids
     * @return
     */
    @DeleteMapping("/ids")
    ResponseResult<List<CartsDTO>> batchDel(@RequestParam("ids") List<Long> ids);
}
